<?php

namespace app\api\validate;

use think\Validate;

class RobOrder extends Validate
{
    protected $rule = [
        'num' => 'require',
        'id' => 'require',
        'type' => 'require'
    ];

    protected $message  =   [
        'num.require' => '购买数量',
        'id.require'     => '请选择要购买的商品',
        'type.require'     => '请选择取货方式',
    ];
}